﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class TemplateMaster : bzMasterPageBase
{
    public string _Pre = "vn";
    public string _Current = "";
    public string _Online = "";

    protected void Page_Load(object sender, EventArgs e)
    {
        this.initSiteLang(bzSiteOption.Group.Website, bzSiteOption.Note.Template, bzLang.Note_Template);
        _Pre = "_" + Session["Lang"].ToString().ToLower().Trim();
        _Current = string.IsNullOrEmpty(Request.QueryString["Current"]) ? "Not" : Request.QueryString["Current"];
        bzSiteOption site = new bzSiteOption("Website", "Template");
        if (Session["Visitor"] == null)
        {
            site.upVisitor();
            Session["Visitor"] = site.getVisitor(site.SiteOption["VisitorSize"]);
        }
        bzOnline online = new bzOnline();
        if (Session["Online"] == null)
        {
            Session["Online"] = bzStringClass.ranString(6);
        }
        else
        {
            online.delete("%" + Request.UserHostAddress + "_" + Session["Online"]);
        }
        _Online = online.getOnline(Request.UserHostAddress + "_" + Session["Online"]);

    }    
}
